package com.sevens.action;

import com.sevens.service.UserService;

public class LoginAction {
	private String username;
	private String password;
	private UserService userService;
	
	
	public UserService getUserService() {
		return userService;
	}
	public void setUserService(UserService userService) {
		this.userService = userService;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String chekUser(){
		
		
		boolean bool = this.userService.checkUser(this.username, this.password);
		if(bool){
			return "success";
		}else{
			return "fail";
		}
		
		
	}

}
